home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / FTP Server / WFTPD Pro.exe / EXTERNLS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-06  |  826 b   |  23 lines

  1. #ifdef UNICODE
  2. #define UCF(x) x ## W
  3. #else
  4. #define UCF(x) x ## A
  5. #endif
  6. #define STRINGOF(x) #x
  7. #define STRINGOF2(x) STRINGOF(x)
  8. #define UCS(x) STRINGOF2(UCF(x))
  9.  
  10. extern "C" {
  11.     // Authenticate a user
  12.     // series    -  Input: The number of this connection [0-9999]
  13.     // szUser    -  Input: the user name given by the FTP client
  14.     // szPass    -  Input: the password given by the FTP client
  15.     // hNTUser   - Output: handle to an NT user to impersonate
  16.     //                      for all this FTP user's actions.
  17.     // szHomeDir - Output: the home directory for this user.
  18.     //                      (up to _MAX_PATH characters)
  19.     typedef BOOL (CALLBACK *WFTPD_AUTHENTICATE)(int series, LPCTSTR szUser,
  20.         LPCTSTR szPass, HANDLE *hNTUser, LPTSTR szHomeDir);
  21. // The function should be exported as "WFTPDAuthenticateA"
  22. };
  23.